#ifndef BSP_USART_H
#define BSP_USART_H
#include "usart.h"

//VOFA+ justfloat协议
#define CH_COUNT  4
struct Frame {
    float ch_data[CH_COUNT];
    unsigned char tail[4];
};

extern struct Frame  justf_data;


extern void USART_Init_DMA_rx(UART_HandleTypeDef *huart,DMA_HandleTypeDef *hdma_usart_rx, uint8_t *rx_buf,uint8_t rx_buf_size);
extern void USART_Init_DMA_tx(UART_HandleTypeDef *huart,DMA_HandleTypeDef *hdma_usart_tx);

#endif
